/*
 * @(#)UserProperty.java Jul 17, 2007
 * 
 * Copyright 2007 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */
package com.cnc.fd.util;

import java.util.Locale;
import java.util.ResourceBundle;


/**
 * @author 阿闲
 * @date   Jul 17, 2007
 * @version 1.0
 */
public class UserProperty {
	
private static ResourceBundle rb = ResourceBundle.getBundle("user", new Locale("zh", "CN"), MailProperty.class.getClassLoader());
	
	/**
	 * 根据同步系统的客户名称，获取管理平台对应的客户名称
	 * @param entername
	 * @return
	 */
	public static String getEntername(String entername){		
		try{			
			return rb.getString(entername).trim();			
		}catch(Exception e){
			//e.printStackTrace();
			return null;
		}
	}
	
	public static void main(String[] args){
		System.out.println(UserProperty.getEntername("tencent"));
	}
}


